import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';

export class CreatePerformanceMetricDto {
  @IsNotEmpty()
  @IsString()
  serviceId: string;

  @IsNotEmpty()
  @IsString()
  serviceName: string;

  @IsNotEmpty()
  @IsNumber()
  responseTime: number;

  @IsNotEmpty()
  @IsNumber()
  errorRate: number;

  @IsNotEmpty()
  @IsNumber()
  requestCount: number;

  @IsOptional()
  @IsString()
  endpoint?: string;

  @IsOptional()
  @IsString()
  region?: string;

  @IsOptional()
  @IsString()
  environment?: string;
} 